using System;
using TelerikMvcGridCustomBindingHelper.Mapper;

namespace TelerikMvcGridCustomBindingHelper.Exceptions
{
    internal class NullSubstituteRegistrationException : Exception
    {
        public INullSubstitute NullSubstitute { get; private set; }

        public NullSubstituteRegistrationException(INullSubstitute nullSubstitute, string message)
            : base(message)
        {
            NullSubstitute = nullSubstitute;
        }

        public NullSubstituteRegistrationException(INullSubstitute nullSubstitute)
            : base(string.Format("Could not regitry the NullSubstitue: {0}", nullSubstitute))
        {
            NullSubstitute = nullSubstitute;
        }
    }
}